<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div>
        <i></i>
        <b></b>
        <span></span>
    </div>
<script>
    Element.prototype.insertAfter = function(targetNode,afterNode){
        var beforNode = afterNode.nextElementSibling;
        if(beforNode == null){
            this.appendChild(targetNode);
        }else {
            this.insertBefore(targetNode,beforNode);
        }
    }
    var div = document.getElementsByTagName('div')[0];
    var i = document.getElementsByTagName('i')[0];
    var b = document.getElementsByTagName('b')[0];
    var span = document.getElementsByTagName('span');
    var p = document.createElement('p');
  
</script>
</body>
</html>